package com.cbg.base.constant;

/**
 * <pre>全局常量</pre>
 * <small> 2018-12-12 | chenbing </small>
 */
public class Constant {
    /**
     * Token请求头key
     */
    public static final String TOKEN="token";
    /**
     * 路线缓存前缀
     */
    public static final String ROUTE_KEY="SYS:routes";
    /**
     * 历史路线总数
     */
    public static final long HIS_SIZE=6;
    /**
     * 班次缓存前缀
     */
    public static final String LINE_SUFFIX="LINE:";
    /**
     * redis取list起止位置
     */
    public static final long LIST_START=0;
    /**
     * redis取list结束位置，-1为全部记录
     */
    public static final long LIST_END=-1;
    /**
     * 时间区间字符串格式
     */
    public static final String FORMAT="HH:mm";
    /**
     * 总共显示排班的天数，固定为今明后3天
     */
    public static final int TOTAL_DAYS=3;
    /**
     * redis计数器key前缀
     */
    public static final String TYPE_SUFFIX="TYPE:";
    /**
     * 1表示订座的ASCLL值
     */
    public static final int SEAT_BOOK=49;
    /**
     * 未订座标识
     */
    public static final char NO_BOOK='0';
    /**
     * 订单状态
     * 未支付=-1、已支付=0、进行中=1、已完成=2、已评价=3、退款=-3、改签=-2
     */
    public static final int IS_REFUND=-3;
    public static final int IS_CHANGED=-2;
    public static final int NOT_PAY=-1;
    public static final int IS_PAID=0;
    public static final int IS_PAYING=1;
    public static final int IS_DONE=2;
    public static final int IS_EVALUATED=3;

    public static final String AUTH_SUFFIX="USER:";

    public static final Integer FIRST_DISCOUNT_TYPE=0;
}
